<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>编辑日记 - 日记小程序</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        }
        body {
            background-color: #fff;
            color: #333;
        }
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            border-bottom: 1px solid #eee;
            background-color: #fff;
        }
        .cancel-btn {
            color: #999;
            font-size: 14px;
        }
        .save-btn {
            color: #42b983;
            font-weight: bold;
            font-size: 14px;
        }
        .date-weather {
            padding: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #eee;
        }
        .date {
            color: #666;
            font-size: 14px;
        }
        .weather {
            display: flex;
            align-items: center;
        }
        .weather-icon {
            margin-right: 5px;
            color: #f8b62d;
        }
        .mood-selector {
            padding: 15px;
            border-bottom: 1px solid #eee;
        }
        .mood-label {
            color: #999;
            font-size: 14px;
            margin-bottom: 10px;
        }
        .mood-options {
            display: flex;
            overflow-x: auto;
            padding-bottom: 5px;
        }
        .mood-option {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-right: 20px;
        }
        .mood-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: #f7f7f7;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 5px;
            font-size: 20px;
        }
        .mood-icon.selected {
            background-color: #e1f5ea;
            color: #42b983;
        }
        .mood-name {
            font-size: 12px;
            color: #666;
        }
        .diary-content {
            padding: 15px;
        }
        .diary-textarea {
            width: 100%;
            height: 200px;
            border: none;
            outline: none;
            resize: none;
            font-size: 14px;
            line-height: 1.6;
        }
        .placeholder {
            color: #ccc;
        }
        .tools {
            display: flex;
            padding: 15px;
            border-top: 1px solid #eee;
        }
        .tool-item {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            margin-right: 10px;
            color: #666;
            font-size: 18px;
        }
        .photo-preview {
            padding: 0 15px 15px;
            display: flex;
            flex-wrap: wrap;
        }
        .photo-item {
            width: calc(33.333% - 10px);
            margin-right: 10px;
            margin-bottom: 10px;
            position: relative;
        }
        .photo-item img {
            width: 100%;
            height: 80px;
            object-fit: cover;
            border-radius: 5px;
        }
        .delete-photo {
            position: absolute;
            top: -5px;
            right: -5px;
            background-color: rgba(0,0,0,0.5);
            color: white;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
        }
    </style>
</head>
<body>
    <div class="header">
        <div class="cancel-btn">取消</div>
        <div class="save-btn">保存</div>
    </div>

    <div class="date-weather">
        <div class="date">2023年4月19日 星期三</div>
        <div class="weather">
            <div class="weather-icon">
                <i class="fas fa-cloud-sun"></i>
            </div>
            <select>
                <option>晴</option>
                <option>多云</option>
                <option>阴</option>
                <option>雨</option>
                <option>雪</option>
            </select>
        </div>
    </div>

    <div class="mood-selector">
        <div class="mood-label">今天的心情</div>
        <div class="mood-options">
            <div class="mood-option">
                <div class="mood-icon selected">
                    <i class="fas fa-smile"></i>
                </div>
                <div class="mood-name">开心</div>
            </div>
            <div class="mood-option">
                <div class="mood-icon">
                    <i class="fas fa-angry"></i>
                </div>
                <div class="mood-name">生气</div>
            </div>
            <div class="mood-option">
                <div class="mood-icon">
                    <i class="fas fa-sad-tear"></i>
                </div>
                <div class="mood-name">伤心</div>
            </div>
            <div class="mood-option">
                <div class="mood-icon">
                    <i class="fas fa-meh"></i>
                </div>
                <div class="mood-name">平静</div>
            </div>
            <div class="mood-option">
                <div class="mood-icon">
                    <i class="fas fa-surprise"></i>
                </div>
                <div class="mood-name">惊讶</div>
            </div>
            <div class="mood-option">
                <div class="mood-icon">
                    <i class="fas fa-tired"></i>
                </div>
                <div class="mood-name">疲惫</div>
            </div>
        </div>
    </div>

    <div class="diary-content">
        <textarea class="diary-textarea" placeholder="今天过得怎么样？记录下来吧..."></textarea>
    </div>

    <div class="photo-preview">
        <div class="photo-item">
            <img src="https://picsum.photos/id/1019/200/200" alt="预览图片">
            <div class="delete-photo">
                <i class="fas fa-times"></i>
            </div>
        </div>
        <div class="photo-item">
            <img src="https://picsum.photos/id/1015/200/200" alt="预览图片">
            <div class="delete-photo">
                <i class="fas fa-times"></i>
            </div>
        </div>
    </div>

    <div class="tools">
        <div class="tool-item">
            <i class="fas fa-camera"></i>
        </div>
        <div class="tool-item">
            <i class="fas fa-image"></i>
        </div>
        <div class="tool-item">
            <i class="fas fa-location-dot"></i>
        </div>
        <div class="tool-item">
            <i class="fas fa-tag"></i>
        </div>
    </div>
</body>
</html> 